import configparser
import os
BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
config_sql = configparser.RawConfigParser()
config_sql.read(os.path.join(BASE_DIR ,'config/config_sql.ini'))
movieurl_create_sql = config_sql.get('movieurl', 'create_url')
movieurl_select_sql = config_sql.get('movieurl','select_sql')
movieurl_update_sql1 = config_sql.get('movieurl','update_sql1')
movieurl_update_sql2 = config_sql.get('movieurl','update_sql2')
movieurl_update_sql3 = config_sql.get('movieurl','update_sql3')
# movietype sql变量
movietype_create_sql = config_sql.get('movietype', 'create_sql')
select_all_sql = config_sql.get('movietype', 'select_all_sql')
update_sql = config_sql.get('movietype', 'update_sql')
movietype_insert_sql = config_sql.get('movietype', 'insert_sql')

#movievod sql变量
movievod_create_sql = config_sql.get('movievod', 'create_sql')
movievod_insert_sql = config_sql.get('movievod', 'insert_sql')
movievod_select_sql = config_sql.get('movievod', 'select_sql')
movievod_delete_sql = config_sql.get('movievod', 'delete_sql')

# config = configparser.RawConfigParser()
# config.read('../config/config.ini')
# first_startup=config.get('movie', 'first_startup')
# first_database=config.get('movie', 'first_database')
